<?php

namespace App\Http\Admin\Controllers\Manu;


use App\Http\Admin\Services\Manu\ManuService;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;


class ManuController extends Controller
{
    protected $service;

    public function __construct(ManuService $manuService)
    {
        $this->service = $manuService;
    }
    /*
     * 厂家列表页面
     * */
    public function index()
    {
        return view('manu.manu_list');
    }

    /*
     * 添加
     */
    public function store(Request $request)
    {
        $data   =   $request->input('data') ?? null;

        $result =   $this->service->store($data);

        return res('添加成功',$result);
    }
}